package team.kirohuji.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import team.kirohuji.domain.Role;
import team.kirohuji.repository.RoleRepository;
import team.kirohuji.service.RoleService;

/**
 * 权限服务实现类
 * 
 * @author kirohuji
 *
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleRepository roleRepository;

	@Override
	public List<Role> findAll() {
		return roleRepository.findAll();
	}
}
